package com.petadoption.serverclient.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.petadoption.serverclient.entity.Petbreed;
import com.petadoption.serverclient.mapper.PetbreedMapper;
import com.petadoption.serverclient.service.IPetbreedService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 汪仕杰
 * @since 2023-08-28
 */
@Service
public class PetbreedServiceImpl extends ServiceImpl<PetbreedMapper, Petbreed> implements IPetbreedService {

    @Resource
    private PetbreedMapper petbreedMapper;

    @Override
    public List<Petbreed> findBreedById(Integer id) {
        return petbreedMapper.selectList(new QueryWrapper<Petbreed>().eq("pettype_name", id));
    }
}
